package com.ygq.Controller;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by kawa on 2021/3/27.
 */
@Controller
public class IndexController {

    @RequestMapping("/index")
    public String showAll(@RequestParam("type")String type,
                          @RequestParam("price")String price,
                          @RequestParam("date")String date,
                          Model model){
        model.addAttribute("type",type);
        model.addAttribute("price",price);
        model.addAttribute("date",date);
        return "index";
    }
}
